<?php
if($html->getContent('type')=='product')
{
    ImportClass('json');
    $property_text  = $html->getContent('cDescription');
    if(strlen(strip_tags($property_text))<10)
    {
        $property_text= '';
        $properties     = FJSON::decode($html->getContent('cProperty'),true);     
        foreach($properties as $property)
        {
            $property_text.='- '.$property[1].': '.$property[3].'<br>';
        }
    }
    
    $otherproduct   = ListOtherProduct($html->getId(),$html->getContent('iParentId'));
}
else if($html->getUrl()=='cart')
{
    $html->setContent('cName',getLang('Cart'));
    $listCart   = BuildListCart();
}
else if($html->getUrl()=='order')
{
}
else if($html->getUrl()=='new')
{
    $products   = ListAllProduct(0,true);
}
else if($html->getUrl()=='hot')
{
    $products   = ListAllProduct(0,false,true);
}
else if($html->getUrl()=='typical')
{
    $products   = ListAllProduct(0,false,false,true);
}
else if($html->countUrl==1)
{
    $products   = ListAllProduct();
}else
{
    $products   = ListAllProduct($html->getId());
}

if($ajax==true)
{
    echo $products;
    exit;
}
?>